define(function (require, exports, module) {  
    var SearchTable = React.createClass({displayName: "SearchTable",
        getInitialState: function () {
            return {};
        },
        render: function () {
            var data = this.props.data; 
            var header = [];      
            var body = [];
            header = (
                React.createElement("tr", null, React.createElement("th", null), React.createElement("th", null, "标题"), React.createElement("th", null, "文档位置"), React.createElement("th", null, "拥有者"), React.createElement("th", null, "时间"))
                )
            if (data) {
                var _this = this;
                _.each(data, function (node) {
                    body.push(React.createElement("tr", null, 
                            React.createElement("td", null, React.createElement("i", {className: "fa fa-file-text-o"})), 
                            React.createElement("td", null, React.createElement("a", {href: "#"}, node.name)), 
                            React.createElement("td", null, React.createElement("a", {href: "#"}, node.path)), 
                            React.createElement("td", null, React.createElement("a", {href: "#"}, node.owner)), 
                            React.createElement("td", null, React.createElement("a", {href: "#"}, node.time))
                            )
                             )
                    body.push(React.createElement("tr", null, 
                            React.createElement("td", null), 
                            React.createElement("td", {colSpan: "4", className: "bg_f5"}, node.description)
                            ))
                });
            }
            var classes = {
                'table' : true,
                'table-hover' : true
            }
            var table = (
                React.createElement("table", {className: classNames(classes)}, 
                 React.createElement("thead", null, header), 
                 React.createElement("tbody", null, body)
                )
                )    
            return (
                React.createElement("div", {className: "table-responsive"}, 
                    table
                )
            )
        }
    });
    return SearchTable;
})